<template>
	<view class="section-title">
		<image class="section-icon" :src="icon" mode="widthFix"></image>
		<text class="section-text">{{ title }}</text>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '暂无标题'
			},
			icon: {
				type: String,
				default: '/static/icon-images/bars.png' 
			}
		},
	};
</script>

<style>
	.section-title {
		display: flex;
		align-items: center;
	}

	.section-icon {
		display: block;
		width: 50rpx;
		height: 50rpx;
	}

	.section-text {
		font-size: 38rpx;
		color: #e2e8f0;
		font-weight: 700;
	}
</style>